<?php
$moduleName   = $invokeParams['moduleName'];
$formDialogId = WacModuleHelper::getFormDialogId($invokeParams['moduleName']);
$formId       = WacModuleHelper::getFormId($invokeParams['moduleName']);

echo "<script type=\"text/javascript\" src=\"/js/backend/{$invokeParams['moduleName']}/".WacControlTableType::$moduleForm.".js\">";
echo "</script>";
echo "<div id=\"".$formDialogId."\" class=\"ui-widget\" style=\"display: none\" >\n\n";
?>
<!-- form, begin-->
<form action="#" name="<?php echo $formId;?>" id="<?php echo $formId;?>" method="post" class="wacFormA">
    <div class="wacFormFirstCol">
        <h3>
            <?php
            echo $invokeParams['caption'];
            ?>
        </h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemLeft ">编号</div>
                <div class="wacFormItemRight">
                    <input name="code" id="<?php echo $moduleName; ?>_code" type="text" class="validate[required,custom[noSpecialCaracters]] wacFormText DataTD ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">生产单号</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $moduleName; ?>_production_order_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">整理单号</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $moduleName; ?>_clean_up_form_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">货物分类</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $moduleName; ?>_goods_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">QC日期</div>
                <div class="wacFormItemRight">
                    <input name="qc_date" id="<?php echo $moduleName; ?>_qc_date" type="text" class="validate[required,custom[date]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
        </div>
    </div>
    <div class="wacFormSecondCol" style="margin-right: 1px; margin-left: -35px; width:320px;">
        <h3>&nbsp;</h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_hole_check_memo">破洞检测</label>
                    <input name="hole_check" id="<?php echo $moduleName; ?>_hole_check" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_hole_check">备注</label>
                    <textarea name="hole_check_memo" id="<?php echo $moduleName; ?>_hole_check_memo" class="ui-widget-content ui-corner-all" cols="15" rows="2"></textarea>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_edge_check_memo">烂边检测</label>
                    <input name="edge_check" id="<?php echo $moduleName; ?>_edge_check" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_edge_check">备注</label>
                    <textarea name="edge_check_memo" id="<?php echo $moduleName; ?>_edge_check_memo" class="ui-widget-content ui-corner-all" cols="15" rows="2"></textarea>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_fold_check_memo">折痕检测</label>
                    <input name="fold_check" id="<?php echo $moduleName; ?>_fold_check" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_fold_check">备注</label>
                    <textarea name="fold_check_memo" id="<?php echo $moduleName; ?>_fold_check_memo" class="ui-widget-content ui-corner-all" cols="15" rows="2"></textarea>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_spot_check_memo">斑迹检测</label>
                    <input name="spot_check" id="<?php echo $moduleName; ?>_spot_check" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_spot_check">备注</label>
                    <textarea name="spot_check_memo" id="<?php echo $moduleName; ?>_spot_check_memo" class="ui-widget-content ui-corner-all" cols="15" rows="2"></textarea>
                </div>
                <div class="wacFormClear"></div>
            </div>
        </div>

    </div>

    <div class="wacFormThirdCol" style="margin-right: 1px; margin-left: -35px;">
        <h3>&nbsp;</h3>
        <div class="wacFormRow">
            <div class="wacFormItemPeer">
                <label for="<?php echo $moduleName; ?>_touch_check">手感检测</label>
                <input name="touch_check" id="<?php echo $moduleName; ?>_touch_check" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
            </div>
            <div class="wacFormItemPeer">
                <label for="<?php echo $moduleName; ?>_luster_check">光泽检测</label>
                <input name="luster_check" id="<?php echo $moduleName; ?>_luster_check" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
            </div>
            <div class="wacFormClear"></div>
        </div>
        <div class="wacFormRow">
            <div class="wacFormItemPeer">
                <label for="<?php echo $moduleName; ?>_color_check">布匹检测</label>
                <input name="color_check" id="<?php echo $moduleName; ?>_color_check" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
            </div>
            <div class="wacFormItemPeer">
                <label for="<?php echo $moduleName; ?>_cloth_check">布底黑毛粒</label>
                <input name="cloth_check" id="<?php echo $moduleName; ?>_cloth_check" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
            </div>
            <div class="wacFormClear"></div>
        </div>
    </div>
    
    <div class="wacFormClear"></div>
    <div class="wacFormBottom" align="center">

        <hr class="wacFormRuler" style="width:850px; float:inherit;" />
        <div class="wacFormRow">
            <div class="wacFormItemLeft">备注</div>
            <div class="wacFormItemRight">
                <textarea name="memo" id="<?php echo $moduleName; ?>_memo" class="ui-widget-content ui-corner-all" cols="108" rows="4"></textarea></div>
            <div class="wacFormClear"></div>
        </div>
        <div class="wacFormClear"></div>
        <input name="btnSubmit" id="<?php echo $moduleName; ?>_btnSubmit" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="提交" />
        &nbsp;&nbsp;
        <input name="btnClose" id="<?php echo $moduleName; ?>_btnClose" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="关闭" />
    </div>

    <input type="hidden" name="id" id="<?php echo $moduleName; ?>_id" value="0">
</form>
<!-- form, end-->
<?php echo "</div>"; ?>